package com.nbers.springcloud.microservice;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.Mapping;

/**
 * 微服务应应用启动类
 * @author SIMON
 */
@SpringBootApplication
@EnableEurekaClient
@EnableHystrix
@EnableFeignClients(basePackages = "com.nbers.springcloud.microservice.feign")
@ComponentScan(basePackages = {"com.nbers.springcloud.microservice.*"})
@MapperScan("com.nbers.springcloud.microservice.mapper")
public class MicroServiceApp {
    public static void main(String[] args){
        SpringApplication.run(MicroServiceApp.class,args);
        System.out.println("MicroServiceApp is running!");
    }
}
